#ifndef __STACK_H__
#define __STACK_H__

#define MAXSIZE 32

#include<stdio.h>
#include<stdlib.h>

typedef struct
{
    char data[MAXSIZE];
    int top;
}Stack;

Stack *StackInit(); //生成空栈
int StackEmpty(Stack *s); //判空
int StackPush(Stack *s,char a); //入栈
int StackPop(Stack *s,char a); //出栈
char StackTop(Stack *s); //取栈顶元素，但不出栈

#endif